package com.transaction.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 用户和股票关系表
 * @TableName sys_user_stock
 */
@TableName(value ="sys_user_stock")
@Data
public class SysUserStock implements Serializable {
    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 股票ID
     */
    private Long stockId;

    /**
     * 持股数量
     */
    private Long stockNumber;

    /**
     * 总花费金额
     */
    private BigDecimal money;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}